import { defineStore } from 'pinia'

const useUser = defineStore('user', {
  state: () => ({
    name: 'ezzz',
    age: 12
  }),
  getters: {
    fullname(state) {
      return state.name + ' dagelas'
    },
    fullnameDesc() {
      return this.fullname + ' is older more'
    }
  },
  actions: {
    fullname() {
      this.name = 'sssdsldjlsdjlsdjl'
    },
    fullnameDesc() {
      this.fullname + ' is older more'
    }
  }
})


export default useUser